//把common配置作为基准模板配置文件，通过merge来将各自独特的配置整合。
const common = require('./webpack.common')
const merge = require('webpack-merge')

module.exports = merge(common, {
  mode: 'development',
  devtool: 'source-map',
  devServer: {
    contentBase: './public',
    open: true
  }
})